package com.quick.service;

import com.quick.domain.Book;
import com.quick.mapper.BookMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName BookService
 * @Description TODO
 * @Author wangxin332
 * @Date 2018/10/8 下午3:50
 * @Version 1.0
 **/
@Service
@Slf4j
public class BookService {
	@Resource
	private BookMapper bookMapper;
	public void insert(Book book){
		bookMapper.insert(book);
	}

	public Book query(String isbn){
		return bookMapper.queryByIsbn(isbn);
	}
}
